package eleanor.ltd.isRealEstate.dao.estate;

import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import eleanor.ltd.isRealEstate.entities.estate.Estate;

public interface EstateDAO {

	@CommitAfter
    public boolean save(Estate estate);

    @CommitAfter
    public boolean delete(Estate estate);

    @CommitAfter
    public boolean update(Estate estate);

    public List<Estate> findAll();

    public Estate findByID(Long id);

    @CommitAfter
    public boolean deleteByID(Long id);
}
